﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnATous.DBO
{
    public class User
    {
        #region Properties
        private Int64 _id;
        private string _firstName;
        private string _lastName;
        private string _pseudo;
        private string _photo;
        private Int64 _credits;
        private DateTime _creditDate;
        #endregion Properties

        #region Getter/Setter
        public Int64 Id
        {
            get { return _id; }
            set { _id = value; }
        }
        public string FirstName
        {
            get { return _firstName; }
            set { _firstName = value; }
        }
        public string LastName
        {
            get { return _lastName; }
            set { _lastName = value; }
        }
        public string Pseudo
        {
            get { return _pseudo; }
            set { _pseudo = value; }
        }
        public string Photo
        {
            get { return _photo; }
            set { _photo = value; }
        }
        public Int64 Credits
        {
            get { return _credits; }
            set { _credits = value; }
        }
        public DateTime CreditDate
        {
            get { return _creditDate; }
            set { _creditDate = value; }
        }
        #endregion Getter/Setter

        #region Constructors
        public User()
        {
            _id = 0;
            _firstName = "";
            _lastName = "";
            _pseudo = "";
            _photo = "";
            _credits = 0;
            _creditDate = DateTime.Now;
        }
        public User(Int64 id, string firstName, string lastName, string photo, Int64 credits, DateTime creditDate)
        {
            _id = id;
            _firstName = firstName;
            _lastName = lastName;
            _pseudo = _firstName + " " + _lastName;
            _photo = photo;
            _credits = credits;
            _creditDate = creditDate;
        }
        #endregion Constructors

    }
}